package org.gjw.controller;

import org.gjw.config.DataSourceHolder;
import org.gjw.mapper.DataSourceInfoMapper;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author guojunwang
 * @date 2022-05-10 23:31
 */
@RestController
public class DataSourceInfoController {


    @Resource
    private DataSourceInfoMapper infoMapper;

    @GetMapping("/list")
    public List list(){
        return infoMapper.selectList( null );
    }
}
